package com.phiture.erp.stock.core.service;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import com.phiture.erp.stock.core.pojo.dto.ErpStockRecordCreateReqDTO;
import com.phiture.erp.stock.core.pojo.dto.ErpStockRecordPageReqDTO;
import com.phiture.erp.stock.dal.entity.ErpStockRecordDO;

import javax.validation.Valid;

/**
 * ERP 产品库存明细 Service 接口
 */
public interface ErpStockRecordService {

    /**
     * 获得产品库存明细
     *
     * @param id 编号
     * @return 产品库存明细
     */
    ErpStockRecordDO getStockRecord(Long id);

    /**
     * 获得产品库存明细分页
     *
     * @param pageReqDTO 分页查询
     * @return 产品库存明细分页
     */
    PageResult<ErpStockRecordDO> getStockRecordPage(ErpStockRecordPageReqDTO pageReqDTO);

    /**
     * 创建库存明细
     *
     * @param createReqDTO 创建库存明细
     */
    void createStockRecord(@Valid ErpStockRecordCreateReqDTO createReqDTO);

}